package com.example.demo.model;

import java.util.List;

/**
 * Created by huxin on 2017/7/31.
 */
public interface UserService <T>{


    void create(String name, Integer age);

    void deleteByName(String name);

    void deleteById(Long id);


    void deleteAllUsers();

    T getUserById(Long id);

    List<T> getAllUsers();

    Integer getAllUsersCount();

    void update(T user);
}
